/*    */ package cn.zzuisa.news.service.impl;
/*    */ 
/*    */ import cn.zzuisa.news.entity.Page;
/*    */ import cn.zzuisa.news.entity.User;
/*    */ import cn.zzuisa.news.form.UserEditForm;
/*    */ import cn.zzuisa.news.repository.UserRepository;
/*    */ import cn.zzuisa.news.repository.dao.UserDAO;
/*    */ import cn.zzuisa.news.service.UserService;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class UserServiceImpl
/*    */   implements UserService
/*    */ {
/* 19 */   private UserRepository userDAO = new UserDAO();
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 24 */   public User login(String username, String password) { return this.userDAO.login(username, password); }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 30 */   public <T> boolean register(T user) { return this.userDAO.register(user); }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 36 */   public int addpoint(Integer id) { return this.userDAO.addpoint(id); }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 42 */   public User findByUsername(String username) { return this.userDAO.findByUsername(username); }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 48 */   public boolean edit(UserEditForm userEditForm) { return this.userDAO.edit(userEditForm); }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 54 */   public Page pagelist(Integer current, Integer size) { return this.userDAO.pagelist(current, size); }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/* 60 */   public boolean editState(Integer id, Integer key) { return this.userDAO.editState(id, key); }
/*    */ }


/* Location:              /Users/frank/Desktop/admin/WEB-INF/classes/!/cn/zzuisa/news/service/impl/UserServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.0.7
 */